/*
 * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef OHOS_TOUCH_PROCESSOR_H
#define OHOS_TOUCH_PROCESSOR_H
#include <ace/xcomponent/native_interface_xcomponent.h>
#include <vector>
#include "flutter/lib/ui/window/pointer_data.h"
#include "napi_common.h"

namespace flutter {
//  struct TwoFingerTouchPointer
// {
//     /** X coordinate of the touch point relative to the left edge of the element to touch. */
//     float pos1x;
//     /** Y coordinate of the touch point relative to the upper edge of the element to touch. */
//     float pos1y;
//     /** X coordinate of the touch point relative to the left edge of the element to touch. */
//     float pos2x;
//     /** Y coordinate of the touch point relative to the upper edge of the element to touch. */
//     float pos2y;
// };
class OhosTouchProcessor {
 public:
//   OhosTouchProcessor();
//   void SetTouchPoint(float posP1x,float posP1y,float posP2x,float posP2y);
//   TwoFingerTouchPointer getTouchPoint();
  void HandleTouchEvent(int64_t shell_holderID,
                        OH_NativeXComponent* component,
                        OH_NativeXComponent_TouchEvent* touchEvent);
  flutter::PointerData::Change getPointerChangeForAction(int maskedAction);
  flutter::PointerData::DeviceKind getPointerDeviceTypeForToolType(
      int toolType);
public:

public:
  OH_NativeXComponent_TouchPointToolType touchType_;

// private:
//     TwoFingerTouchPointer twofingpoint;
};
}  // namespace flutter
#endif  // XComponent_OhosTouchProcessor_H